package com.varian.task.core;

import com.varian.task.model.BaseTaskModel;

/**
 * @author ben
 * @since 2024/11/21
 */
public interface ITaskHandler {

    String getTaskCode();

    void execute(BaseTaskModel taskModel) throws Exception;

    default void init() throws Exception {
    }

    default void destroy() throws Exception {
    }
}
